<%@page import="com.biz.ShopCartBizImpl"%>
<%@page import="com.entity.ShopCart"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/do/checklogin.jsp" %>
<%
	int id=Integer.parseInt(request.getParameter("id"));
	int num=Integer.parseInt(request.getParameter("num"));
	ShopCart sc=new ShopCart();
	sc.setId(id);
	sc.setNum(num);
	if(new ShopCartBizImpl().modShopCart(sc)<=0){
	%>
		<script>alert("修改失败");</script>
	<%
	}
%>
<script>history.back();</script>